<?php
// $Id: node.tpl.php,v 1.5 2007/10/11 09:51:29 goba Exp $
global $base_url;
?>

<div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?>
<?php if (!$status) { print ' node-unpublished'; } ?>">

<?php //if ($page == 0):
/*print "<pre>";
print_r($node); 
print "</pre>";*/
//print '<pre>';print_r($node->field_portfolio_member);print '</pre>';
 ?>
  <h2 style="color:#137CB6">
  <?php print $node->field_type_portfolio['und'][0]['value']; ?></h2>
<?php //endif; ?>
<div >
	<div class="profile_form_div" style="border-bottom:none" >
	<?php
	
	 //print_r($node);
	  $nid = $node->field_portfolio_member['und'][0]['value']; 
	   //$image = node_load($nid);
	  $image = node_load($nid);
	 // print_r($image->field_mla_photo['und'[0]['uri']]); ?>
	 
	<?php if($image->field_mla_photo['und'][0]['uri']!=''){?>
	<p class="profile_form" style="width:165px;"><img src="<?php print file_create_url($image->field_mla_photo['und'][0]['uri']); ?>" align="middle" /></p> 
	<?php } else { ?>
	<p class="profile_form" style="width:165px;"><img src="<?php echo $base_url ?>/sites/default/files/no-profile-man-medium.jpg" width='150px' height='170px' /></p>
	<?php } ?>
	
	<p style="font-weight:bold; padding-top:40px;"><?php print ($image->title) .'<br>';print $node->title; ?></p></div> <div class="clr"></div>
	<?php if($node->field_portfolio_department['und'][0]['value']!='') {?> 
	<div class="profile_form_div" style="border-bottom:none" ><p class="profile_form" >Department:</p><p id="profile_form">
	<?php print get_dept_name($node->field_portfolio_department['und'][0]['value']);?></p></div> <div class="clr"></div>
	<?php } ?>
	<?php if($node->field_portfolio_portfolio['und'][0]['value']!='') {?> 
	<div class="profile_form_div"><p class="profile_form" >Portfolio</p><p id="profile_form"><?php print $node->field_portfolio_portfolio['und'][0]['value'];?></p></div> <div class="clr"></div>
	<?php } ?>	
</div>


  <div class="clear-block">
    <div class="meta">
	
   <!-- < ?php if ($taxonomy): ?>
      <div class="terms"><b>Keywords :</b>
	  < ?php print $terms ?></div>
    < ?php endif;?>-->
	
    </div>

  </div>

</div>
